package com.yhg.exception;


import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

//@RequestBody  //返回body
//@ControllerAdvice //全局异常处理器

@RestControllerAdvice //上面两个的合成

public class GlobalException {
}
